home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xmu / drawing.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  159 lines

  1. /* $XConsortium: Drawing.h,v 1.10 91/07/22 23:45:48 converse Exp $
  2.  *
  3.  * Copyright 1988 by the Massachusetts Institute of Technology
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose and without fee is hereby granted, provided 
  7.  * that the above copyright notice appear in all copies and that both that 
  8.  * copyright notice and this permission notice appear in supporting 
  9.  * documentation, and that the name of M.I.T. not be used in advertising
  10.  * or publicity pertaining to distribution of the software without specific, 
  11.  * written prior permission. M.I.T. makes no representations about the 
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  * The X Window System is a Trademark of MIT.
  16.  *
  17.  * The interfaces described by this header file are for miscellaneous utilities
  18.  * and are not part of the Xlib standard.
  19.  */
  20.  
  21. #ifndef _XMU_DRAWING_H_
  22. #define _XMU_DRAWING_H_
  23.  
  24. #include <X11/Xfuncproto.h>
  25.  
  26. #if NeedFunctionPrototypes
  27. #include <stdio.h>
  28. #if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED)
  29. typedef unsigned long Pixel;
  30. #endif
  31. #endif
  32.  
  33. _XFUNCPROTOBEGIN
  34.  
  35. extern void XmuDrawRoundedRectangle(
  36. #if NeedFunctionPrototypes
  37.     Display*    /* dpy */,
  38.     Drawable     /* draw */,
  39.     GC         /* gc */,
  40.     int        /* x */,
  41.     int        /* y */,
  42.     int        /* w */,
  43.     int        /* h */,
  44.     int        /* ew */,
  45.     int        /* eh */
  46. #endif
  47. );
  48.  
  49. extern void XmuFillRoundedRectangle(
  50. #if NeedFunctionPrototypes
  51.     Display*    /* dpy */,
  52.     Drawable     /* draw */,
  53.     GC         /* gc */,
  54.     int        /* x */,
  55.     int        /* y */,
  56.     int        /* w */,
  57.     int        /* h */,
  58.     int        /* ew */,
  59.     int        /* eh */
  60. #endif
  61. );
  62.  
  63. extern void XmuDrawLogo(
  64. #if NeedFunctionPrototypes
  65.     Display*    /* dpy */,
  66.     Drawable     /* drawable */,
  67.     GC        /* gcFore */,
  68.     GC        /* gcBack */,
  69.     int        /* x */,
  70.     int        /* y */,
  71.     unsigned int /* width */,
  72.     unsigned int /* height */
  73. #endif
  74. );
  75.  
  76. extern Pixmap XmuCreatePixmapFromBitmap(
  77. #if NeedFunctionPrototypes
  78.     Display*        /* dpy */,
  79.     Drawable         /* d */,
  80.     Pixmap         /* bitmap */,
  81.     unsigned int    /* width */,
  82.     unsigned int    /* height */,
  83.     unsigned int    /* depth */,
  84.     unsigned long    /* fore */,
  85.     unsigned long    /* back */
  86. #endif
  87. );
  88.  
  89. extern Pixmap XmuCreateStippledPixmap(
  90. #if NeedFunctionPrototypes
  91.     Screen*        /* screen */,
  92.     Pixel        /* fore */,
  93.     Pixel        /* back */,
  94.     unsigned int    /* depth */
  95. #endif
  96. );
  97.  
  98. extern void XmuReleaseStippledPixmap(
  99. #if NeedFunctionPrototypes
  100.     Screen*        /* screen */,
  101.     Pixmap         /* pixmap */
  102. #endif
  103. );
  104.  
  105. extern Pixmap XmuLocateBitmapFile(
  106. #if NeedFunctionPrototypes
  107.     Screen*        /* screen */,
  108.     _Xconst char*    /* name */,
  109.     char*        /* srcname_return */,
  110.     int         /* srcnamelen */,
  111.     int*        /* width_return */,
  112.     int*        /* height_return, */,
  113.     int*        /* xhot_return */,
  114.     int*        /* yhot_return */
  115. #endif
  116. );
  117.  
  118. extern Pixmap XmuLocatePixmapFile(
  119. #if NeedFunctionPrototypes
  120.     Screen*        /* screen */,
  121.     _Xconst char*    /* name */,
  122.     unsigned long    /* fore */,
  123.     unsigned long    /* back */,
  124.     unsigned int    /* depth */,
  125.     char*        /* srcname_return */,
  126.     int         /* srcnamelen */,
  127.     int*        /* width_return */,
  128.     int*        /* height_return, */,
  129.     int*        /* xhot_return */,
  130.     int*        /* yhot_return */
  131. #endif
  132. );
  133.  
  134. extern int XmuReadBitmapData(
  135. #if NeedFunctionPrototypes
  136.     FILE*        /* fstream */,
  137.     unsigned int*    /* width_return */,
  138.     unsigned int*    /* height_return */,
  139.     unsigned char**    /* datap_return */,
  140.     int*        /* xhot_return */,
  141.     int*        /* yhot_return */
  142. #endif
  143. );
  144.  
  145. extern int XmuReadBitmapDataFromFile(
  146. #if NeedFunctionPrototypes
  147.     _Xconst char*    /* filename */,
  148.     unsigned int*    /* width_return */,
  149.     unsigned int*    /* height_return */,
  150.     unsigned char**    /* datap_return */,
  151.     int*        /* xhot_return */,
  152.     int*        /* yhot_return */
  153. #endif
  154. );
  155.  
  156. _XFUNCPROTOEND
  157.  
  158. #endif /* _XMU_DRAWING_H_ */
  159.